Micron Document
Deavmi's coding shack

Commit fb798338a95ef8bffd149d195f14b6f809735505


Parents : 6d80695
Author : Tristan B. Kildaire <deavmi@redxen.eu>
Date : 2021-03-05T11:48:55+02:00

Fixed previous journal entries, added a new one(s)

Changes

4 files changed, 128 insertions(+), 0 deletions(-)


Diff

diff --git a/docs/journal/first-day.md b/docs/journal/first-day.md
index 2dc7baf..af2de7c 100644
--- a/docs/journal/first-day.md
+++ b/docs/journal/first-day.md
@@ -6,6 +6,8 @@ First day of work
Basically finished the lexer today, it was the first day of
coding for the project so I am pleased with this progress.
+On `#programming` on BNET:
+
```
[22:52:02] <~deavmi> no idea
[23:39:48] <~deavmi> Character literal support added

diff --git a/docs/journal/parser-update-1.md b/docs/journal/parser-update-1.md
new file mode 100644
index 0000000..f7b58e8
--- /dev/null
+++ b/docs/journal/parser-update-1.md
@@ -0,0 +1,41 @@
+Parser update 1
+===============
+
+On `#programming` on BNET on the 5th of March 2021:
+
+```
+[11:33:34] <~deavmi> Working a little on the compiler now
+[11:33:39] <~deavmi> Arithmetic parsing is still broken
+[11:33:41] <~deavmi> Will return to that
+[11:33:46] <~deavmi> But nested classes and those things are doing fine
+[11:33:47] <~deavmi> So that is good
+[11:34:06] <~deavmi> Need to neaten up some functions to make them more self-contained in terms of token movement
+[11:34:10] <~deavmi> But other than that it is going pretty well
+[11:34:27] <~deavmi> I aim to get the compiler's parser done before I return the university hopefully
+[11:34:29] <~deavmi> That will be good
+[11:34:30] <~deavmi> :)
+[11:34:54] <~deavmi> I also need to add a check for what depth we are at or what we are in, to, for example, stop people from declaring classes in functions as that is silly and makes no sense
+[11:35:00] <~deavmi> Although it could be done
+[11:35:02] <~deavmi> :mmm:
+[11:35:41] <~deavmi> I mean it's also my birthday today
+[11:35:45] <~deavmi> So I won't let this worry me today
+[11:35:45] <rnbunker> interesting
+[11:35:45] <~deavmi> :)
+[11:35:47] <rnbunker> ah yes
+[11:35:50] <rnbunker> happy birthday
+[11:35:51] <~deavmi> rnbunker: thanks
+[11:35:53] <~deavmi> rnbunker: thanks mate
+```
+
+### Expression parsing
+
+I think I will be able to implement it, woohoo!
+
+```
+[11:47:04] <~deavmi> Ah I think I recall how I did expression parsing now so that's good
+[11:47:09] <~deavmi> I think I will need a while loop
+[11:47:10] <~deavmi> Makes sense
+[11:47:17] <~deavmi> Nice, I will attempt to do that tomorrow probably
+```
+
+Anywho, it's my birthday today so _**what the hell am I doing here!**_
\ No newline at end of file

diff --git a/docs/journal/parsing-begins.md b/docs/journal/parsing-begins.md
new file mode 100644
index 0000000..ab357aa
--- /dev/null
+++ b/docs/journal/parsing-begins.md
@@ -0,0 +1,83 @@
+Parsing begins
+==============
+
+I begun working on the parser today, along with minor fixes
+and additions to the lexer and some test cases. I started
+added symbols to the `token -> symbol` mapper, the actual
+parsing hasn't begun just yet but a lot of the plumbing behind
+it has. I also added a neat feature for attaching line and
+column numbers to the tokens during the lexical analysis stage
+(however it doesn't seem to be working).
+
+On `#programming` on BNET on March 3rd 2021:
+
+```
+[12:08:56] <~deavmi> I am working on parsing now
+[12:09:01] <~deavmi> vv soon gonn start actual parsing
+[12:09:05] <~deavmi> just getting symbol types added etc.
+[12:13:38] <~deavmi> Damn the `.t` extension is supported in VS code
+[12:13:46] <~deavmi> WHo would know they supproted Tlang so early in development?
+[12:16:40] <rnbunker> vscode🤮
+[12:16:59] <rany> it's ok rnbunker
+[12:17:03] <rnbunker> no
+[12:17:09] <rany> he'll see the light eventually
+[12:17:31] <~deavmi> Nah
+[12:17:36] <~deavmi> I already got that dracula theme
+[12:17:38] <~deavmi> I'm not changing
+[12:17:39] <~deavmi> XD
+[12:18:41] <rnbunker> e w
+[12:18:54] <rnbunker> you could've atleast used VS Codium instead
+```
+
+---
+
+On `#BNET` on March 3rd 2021:
+
+Here I was getting some neato-burrito recursive parsing
+working so I was very pleased.
+
+```
+[16:55:57] <~deavmi> Damn this is going good I must say
+[16:56:00] <~deavmi> Making a lot of porgress rn
+[16:56:07] <~deavmi> If I keep this up I might be done with parsing VERY soon
+[17:05:42] <rnbunker> Poggers
+[17:15:56] <~deavmi> Recursive if statement parsing
+[17:15:57] <~deavmi> works
+[17:15:58] <~deavmi> nice
+[17:16:07] <~deavmi> break time :coolcool:
+[17:27:50] <~deavmi> I am coooompiling
+[17:27:54] <~deavmi> chris9: ^
+```
+
+---
+
+### Checklist
+
+So far the following are done for today:
+
+* function call parsing
+* recursive if-statements/while parsing
+ * So recursive body parsing with `parseBody()`
+* expression parsing with arithmetic
+ * Later on realised this was broken
+* variable declarations
+ * with assignment of expressions
+ * without assignment
+
+```
+[22:07:06] --> muto (muto@Clk-94CCC13F.abhsia.telus.net) has joined #general
+[22:14:43] <~deavmi> muto: o/
+[22:19:28] <muto> yoyo how's it going?
+[22:19:59] <~deavmi> not much man
+[22:20:07] <~deavmi> I was wokring on my parser for my compiler earlier muto
+[22:20:27] <~deavmi> Made good progress, need to think abput the recursive expression parsing a bit more and think how I did that a few years ago but the recursive body parsing is done
+[22:20:31] <~deavmi> So if's within if's work
+[22:20:34] <~deavmi> and while's etc
+[22:20:51] <~deavmi> Lexer is completely done I think, only additional features like character escape needed
+[22:20:53] <~deavmi> So that's good
+[22:20:58] <muto> oh dang!
+[22:21:16] <muto> That's good stuff
+[22:21:29] <~deavmi> Yep
+[22:21:29] <~deavmi> :)
+[22:21:31] <~deavmi> Thanks
+```
\ No newline at end of file

diff --git a/mkdocs.yml b/mkdocs.yml
index b854545..e2e8ff3 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -11,5 +11,7 @@ nav:
- Journal:
- journal/why.md
- journal/first-day.md
+ - journal/parsing-begins.md
+ - journal/parser-update-1.md
theme: sandstone
\ No newline at end of file

Served by rngit 1.5.0 - Generated in 0.36s